import {Component, OnInit} from '@angular/core';
import {Position} from '../../../entity/position';
import {CompanyService} from '../../../service/company.service';

@Component({
  selector: 'app-add-position',
  templateUrl: './add-position.component.html',
  styleUrls: ['./add-position.component.css', '../edit-info/edit-info.component.css']
})
export class AddPositionComponent implements OnInit {
  isEdit = false;
  position: Position = new Position();
  nfig = {
    filebrowserBrowseUrl: '&&&&&',
    filebrowserUploadUrl: '&&&'
  };
  constructor(
    public companyService: CompanyService
  ) { }

  addPosition() {
    this.companyService.addPosition(this.position);
  }

  ngOnInit() {
  }
}
